#include "qtoolbarview.h"
#include <QAction>

#include "mainwindow.h"
#include "sconst.h"


QToolBarView::QToolBarView(QWidget *parent) : QToolBar(parent)
{
    initToolBar();
}


void QToolBarView::initToolBar()
{
/***************** ERROR CODEs ************************/
  QPixmap error_code_pix(SC_IMG_ERROR_CODE);
  QIcon   icon_error_code(error_code_pix);
  QAction *pActErrorCode = new QAction(icon_error_code, SC_ERROR_CODE, this->parent());

  pActErrorCode->setIconVisibleInMenu(true);
  connect(pActErrorCode, SIGNAL(triggered()), this->parentWidget(), SLOT(signalOpenErrorCodeViewTable()));
  this->addAction(pActErrorCode);

}
